package cn.test;

import cn.thread.MyThread;

public class TreadSetName {
    public static void main(String[] args) {
        MyThread thread1=new MyThread();
        MyThread thread2=new MyThread();
        //优先级都是5 会随机抢占cpu 随机执行
        thread1.setName("线程1正常启动：");
        thread2.setName("线程2正常启动：");
        thread1.start();
        thread2.start();
    }
}
